import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/models/response/user_info.dart';
import 'package:sainbainu/common/models/response/user_profile_response.dart';
import 'package:sainbainu/common/repositories/common_repository.dart';
import 'package:sainbainu/common/repositories/user_repository.dart';
import 'package:wechat_assets_picker/wechat_assets_picker.dart';

DateTime nowDate = DateTime.now();

class UserInfoState {
  late ScrollController scrollController;

  /// 头部是否折叠
  final isCollapsed = false.obs;

  /// 头部展开高度
  double headerExpandedHeight = 0;

  /// 生日最早日期
  DateTime birthMinDate =
      DateTime(nowDate.year - 80, nowDate.month, nowDate.day);

  /// 生日最晚日期
  DateTime birthMaxDate =
      DateTime(nowDate.year - 18, nowDate.month, nowDate.day);

  /// 临时存储
  DateTime? birthTempDate;

  /// 用户资料
  late UserRepository userRepository;
  UserProfileResponse userProfileResponse = UserProfileResponse();

  /// 公共仓库
  late CommonRepository commonRepository;
}
